//package com.x9space.weixin.controller;
//
//import me.chanjar.weixin.common.bean.WxJsapiSignature;
//import me.chanjar.weixin.common.error.WxErrorException;
//import me.chanjar.weixin.mp.api.WxMpService;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.net.MalformedURLException;
//
///**
// * jsapi 演示接口的 controller.
// *
// * @author <a href="https://github.com/binarywang">Binary Wang</a>
// * @date 2020-04-25
// */
//
//
//@RestController
//@RequestMapping("/wx/jsapi/{appid}")
//public class WxJsapiController {
//    private  WxMpService wxService;
//
//    @GetMapping("/getJsapiTicket")
//    public String getJsapiTicket(@PathVariable String appid) throws WxErrorException {
//        final WxJsapiSignature jsapiSignature = this.wxService.switchoverTo(appid).createJsapiSignature("111");
//        System.out.println(jsapiSignature);
//        return this.wxService.getJsapiTicket(true);
//    }
//}
